<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="persdoc" tagdir="/WEB-INF/tags" %>
<!DOCTYPE html>
<html>
	<head>
		<title>Personal Doc</title>
		<link href="/resources/styles/main.css" type="text/css" rel="stylesheet" media="screen"/>
		<link href="/resources/styles/components.css" type="text/css" rel="stylesheet" media="screen"/>		
	</head>
	<body>
		<div class="row">
		<header id="blog_hd" class="column grid_9">
			<h1 class="logo">Personal Doc</h1>
			<div style="text-align:center"><a href="new">Add examination</a></div>
		</header>
		</div>
		<div class="row">
			<div class="column grid_9">
				<c:choose>
					<c:when test="${empty examinationList}">
						<p>No examinations in database</p>
					</c:when>
					<c:otherwise>
						<c:forEach items="${examinationList}" var="examination">
							<persdoc:examination examination="${examination}"/>
						</c:forEach>
					</c:otherwise>
				</c:choose>
			</div>
		</div>
	</body>
</html>